﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Configuration;

namespace MyVocationSpace
{
    public partial class Confirmation : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BAL.conn.connectionString = ConfigurationManager.ConnectionStrings["connectionstring"].ConnectionString;

            try
            {             
                    if (Request.QueryString["id"] != null && Request.QueryString["code"] != null)
                    {
                        int Cid=Convert.ToInt32(Request.QueryString["id"]);
                        string code=Request.QueryString["code"].ToString();
                        BAL.Users.ConfirmUser(Cid, code);
                    }
               
            }
            catch (Exception)
            {
                throw;
            }
        }
    }
}